#include "shell.h"

int help(int argc, char **argv)
{
    printf("shell commands:\r\n");
    {
        struct finsh_syscall *index;

        for (index = _syscall_table_begin;
                index < _syscall_table_end;
                FINSH_NEXT_SYSCALL(index))
        {
            if (strncmp(index->name, "__cmd_", 6) != 0) continue;
                printf("%-16s - %s\r\n", &index->name[6], index->desc);
        }
    }
    printf("\r\n");

    return 0;
}
ZNS_CMD_EXPORT(help, All supported commands);

